apk の署名中にエラーが発生しました: 見つかりません (Error during signing apk: unable to find)


問題の説明

apk の署名中にエラーが発生しました: 見つかりません (Error during signing apk: unable to find)

Gradle は、apk の署名に使用される 'signingConfig()' メソッドが見つからないと言っています。

考えられる理由もリストしています:

1) プロジェクトは

2) ビルド ファイルに Gradle プラグインが含まれていない可能性があります。

これが私の grade.build です:

apply plugin: 'com.android.application'
apply plugin: 'kotlin‑android'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
    applicationId "happy.blumental.maxim.testproject"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
}

signingConfigs {
    release {
        keyAlias('releaseKey')
        storeFile file('mykeystore.jks')
        keyPassword('key')
        storePassword('store')
    }
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard‑android.txt'), 'proguard‑rules.pro'
        signingConfigs signingConfigs.release
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
compile "com.android.support:appcompat‑v7:$support_version"
compile "com.android.support:support‑v4:$support_version"
compile "org.jetbrains.kotlin:kotlin‑stdlib:$kotlin_version"
compile "io.reactivex:rxjava:1.0.14"
compile('io.reactivex:rxkotlin:0.24.100') { exclude module: 'funktionale' }
compile "io.reactivex:rxandroid:1.0.1"
compile "com.jakewharton.rxbinding:rxbinding‑kotlin:0.3.0"
compile 'org.jetbrains.kotlin:kotlin‑reflect:1.0.0‑beta‑1038'

compile 'com.trello:rxlifecycle:0.3.0'
compile 'com.trello:rxlifecycle‑components:0.3.0'

compile 'com.parse:parse‑android:1.10.2'
}

Properties props = new Properties()
props.load(project.rootProject.file('local.properties').newDataInputStream())
String parseAppId = props.getProperty('parse.app_id') ?: "Specify APP_ID"
String parseClientKey = props.getProperty('parse.client_key') ?: "Specify CLIENT_KEY"

android.buildTypes.each { type ‑>
type.buildConfigField 'String', 'PARSE_APP_ID', "\"$parseAppId\""
type.buildConfigField 'String', 'PARSE_CLIENT_KEY', "\"$parseClientKey\""
}

Gradle プラグイン 1.4.0‑beta6 を使用しています。

エラー ログは次のとおりです:

エラー:(30, 0) Gradle DSL メソッド見つかりません: 'signingConfigs()' 考えられる原因:

  • プロジェクト 'TestProject' は、メソッドを含まないバージョンの Gradle を使用している可能性があります。Gradle ラッパー ファイルを開く
  • ビルド ファイルに Gradle プラグインがない可能性があります。

    リファレンスソリューション

    方法 1:

    Rename a property in your release buildType from signingConfigs to signingConfig as:

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard‑android.txt'), 'proguard‑rules.pro'
            signingConfig signingConfigs.release
        }
    }
    

    Take a look at the dsl reference, you've misspelled the property name.

    (by Maxim BlumentalStanislav)

    リファレンスドキュメント

    1. Error during signing apk: unable to find (CC BY‑SA 2.5/3.0/4.0)

  • #signing #gradle #Android






    関連する質問

    Google アクセス トークンを使用してユーザー プロファイルを取得するにはどうすればよいですか (How do I get user profile using Google Access Token)

    コード署名ツールでMac開発者証明書を使用してJavaアプリケーションに署名するにはどうすればよいですか? (How to use Mac Developer Certificate with codesign tool to sign Java application?)

    apk の署名中にエラーが発生しました: 見つかりません (Error during signing apk: unable to find)

    JwtSecurityTokenHandler.CreateToken で署名するときに「無効なアルゴリズムが指定されました」 ("Invalid algorithm specified" when signing with JwtSecurityTokenHandler.CreateToken)

    アセンブリの FullName プロパティのチェックを無効にできますか? 厳密な命名を使用せずに同様のチェックを実行できますか? (Can a check on the FullName property of an assembly be defeated? Can a similar check be performed without the use of strong naming?)

    Cordova Build.json のパスワード セキュリティ (Cordova Build.json password security)

    アプリリリース用の keytool による秘密鍵の取得 (Obtaining a private key through the keytool for app release)

    android bundleRelease は aab に署名しません (android bundleRelease does not sign the aab)

    証明書に iOS 署名証明書を作成する (create ios signing certificate in my certificates)

    APKに署名する必要がある理由は何ですか? (What reasons does it have to sign apk?)

    signtool.exe エラー: Excel マクロの署名時に SignerSign() が失敗しました (-2147220492/0x800403f4) (signtool.exe Error: SignerSign() failed (-2147220492/0x800403f4) when signing Excel Macro)

    署名付き URL のこの実装は、かなり安全ですか? (Is this implementation of signed URLs reasonably secure?)







    コメント